package com.cskaoyan.day1.generic5;

/**
 * @author Common-zhou
 * @since 2023-02-27 11:05
 */
public class User1Demo {
    public static void main(String[] args) {
        test1();
    }

    private static void test1() {

        // 指定了多个泛型。要么全部写；要么全部不写
        User1<String, Integer> user1 = new User1<>();
        String data1 = user1.data1;
        Integer data2 = user1.data2;

        //User1<String> user11 = new User1();

        User1 user11 = new User1();
        Object data11 = user11.data1;
        Object data21 = user11.data2;

    }
}
